package org.ddd.orderdemo.query.assembler;

import org.ddd.orderdemo.query.pojo.response.QuryOrderResponse;
import org.ddd.orderdemo.repository.po.OrderPo;

import java.util.ArrayList;
import java.util.List;

public class OrderAssembler {


    public static QuryOrderResponse convertToDto(OrderPo orderPo) {

        return new QuryOrderResponse();
    }

    public static List<QuryOrderResponse> convertToDto(List<OrderPo> orderPos) {

        ArrayList<QuryOrderResponse> orderDtos = new ArrayList<>();
        for (OrderPo orderPo : orderPos) {

            QuryOrderResponse orderDto = convertToDto(orderPo);
            orderDtos.add(orderDto);
        }

        return orderDtos;
    }

}
